package com.mapforge.listener;

import java.awt.image.BufferedImage;

import com.mapforge.map.TileMap;

/**
 * The {@link TileMapCreationEvent} class exists to inform
 * {@link TileMapCreationListener} of {@link TileMap} creation events.
 * 
 * @author Will Morrison
 * 
 */
public class TileMapCreationEvent extends BasicEvent {
	/** The map created that caused this event. */
	private TileMap tileMap;

	private BufferedImage fullTilesetImg;

	/** */
	public TileMapCreationEvent(Object source, TileMap tileMap,
			BufferedImage img) {
		super(source);
		this.tileMap = tileMap;
		this.fullTilesetImg = img;
	}

	public BufferedImage getTilesetImage() {
		return fullTilesetImg;
	}

	/** */
	public TileMap getTileMapCreated() {
		return tileMap;
	}
}
